<link href="./css/style.css" rel="stylesheet" type="text/css" />
<div class="main">
<div class="useredit">
	<p class="tt"><a>首页</a>><a href="userlist.php">修改密码</a></p>
	<form class="uedit">
		<p class="p1"><span style="width:75px;">账号</span><label>{$info[auname]}</label></p>
		<p class="p1"><span style="width:75px;">原充值密码</span><input style="padding:0 5px" type="password" name="t0" placeholder="请输入原充值密码" /></p>
		<p class="p1"><span style="width:75px;">新充值密码</span><input style="padding:0 5px" type="password" name="t1" placeholder="请输入新充值密码" /></p>
		<p class="p2"><span style="width:75px;">确认新密码</span><input style="padding:0 5px" type="password" name="t2" placeholder="请再次输入新充值密码" /></p>
		<button type="button" style="background:#5eb95e; color:#fff; margin-left:45px; width:120px;" onclick="xgpassword();">确认修改</button>
	</form>
	<script src="./js/jquery.js"></script>
	<script>		
		function xgpassword(){
				$.ajax({
					type:"post",
					dataType:"json",
					url:"/Moudel.php?m=a&a=xgpassword1",
					data:$(".uedit").serialize(),
					success:function(d){
						if(d[0]==0){
							alert(d[1]);
						}
						else{
							alert(d[1]);
							window.location.href='xgpass1.php';
						}
					}
				});
			}
	</script>
	
</div>
</div>
<script>
	h1 = $(".main").height();
	h2 = $(".useredit").height();
	if(h2>h1){
		$(".main").css("height","auto");
	}
</script>
